import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
// 导入字体图标
import './assets/fonts/iconfont.css'
import common from './assets/js/common'
import { configAxios, failed } from './config/axios.config'
import { config } from './config/global.config'

Vue.config.productionTip = false
Vue.prototype.http = configAxios
Vue.prototype.config = config
Vue.prototype.failed = failed
Vue.prototype.common = common
Vue.prototype.preventDuplicateSubmit = common.preventDuplicateSubmit

Vue.filter('dateFormat', common.dateFormat)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
